package com.wanxi.dangdang.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Author: 寇文宝
 * @Description:
 * @Date: Created in 2021/8/30
 * @Version: 1.0
 */

@Data
@ApiModel(value = "订单vo实体类", description = "订单实体类")
public class OrderVo {
    @ApiModelProperty(value = "景区ID,由景区详情页面带过来")
    private Long scenicId;

    @ApiModelProperty(value = "景区名称,由景区详情页面带过来")
    private String scenicName;

    @ApiModelProperty(value = "分销商ID,由景区详情页面带过来")
    private Long storeId;

    @ApiModelProperty(value = "销售价,由景区详情页面带过来")
    private BigDecimal price;

    @ApiModelProperty(value = "微信ID,由景区详情页面带过来")
    private String weChatId;

    @ApiModelProperty(value = "联系人姓名,必填")
    private String realName;

    @ApiModelProperty(value = "联系人身份证号码,必填")
    private String idCard;

    @ApiModelProperty(value = "联系电话（订单生成页面必填）")
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "出行日期（订单生成页面必填）")
    private Date tripDate;

    @ApiModelProperty(value = "所定票数由景区详情页面带过来并在生成页面回显")
    private Integer poll;

    @ApiModelProperty(value = "佣金比例,由景区详情页面带过来")
    private double commissionRate;

    @ApiModelProperty(value = "邮箱（订单生成页面必填）")
    private String email;

    @ApiModelProperty(value = "订单详情表（订单生成页面必填）")
    private List<OrderDetailsVo> orderDetailsVoList;
}
